// 利用GET获得动态
function dyGetForm(urls){
    let p1 = new Promise(function (resolve, reject) {
        var xhr = new XMLHttpRequest();
        xhr.open("GET", baseURL+urls,true);
        xhr.send();
        xhr.onreadystatechange = handle;

        function handle() {
  
          if (this.readyState != 4) {
            return;
          }
          if (this.status == 200) {
            let info = JSON.parse(xhr.responseText);
            resolve(info);
          } else {
            let info = JSON.parse(xhr.responseText);
            reject(info);
          }
        }
      });

      return p1;
}

// 查询个人动态路径参数
function pathGetData(urls){
  let p1 = new Promise(function (resolve, reject) {
    var xhr = new XMLHttpRequest();
    xhr.open("GET", baseURL+urls,true);
    xhr.send();
    xhr.onreadystatechange = handle;

    function handle() {

      if (this.readyState != 4) {
        return;
      }
      if (this.status == 200) {
        let info = JSON.parse(xhr.responseText);
        resolve(info);
      } else {
        let info = xhr.responseText;
        reject(info);
      }
    }
  });
  return p1;
}